package com.example;

import com.example.config.ConfigBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStream;
import java.io.InputStreamReader;

@SpringBootApplication
@EnableScheduling
public class BootdemoApplication {
    public static void main(String[] args) {
        /*
        InputStream inputStream = BootdemoApplication.class.getClassLoader().getResourceAsStream("xy.txt");
        InputStreamReader reader = new InputStreamReader(inputStream);
        BufferedReader br = new BufferedReader(reader); // 建立一个对象，它把文件内容转成计算机能读懂的语言
        String line = "";
        try {
            line = br.readLine();
            System.out.println(line);
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
        */
        SpringApplication.run(BootdemoApplication.class, args);
    }
}
